# CMakeLists
# Author(s): xuming.Wong <xuming.Wong@gmail.com>

#-----------------------------------------------------------------------------
# 
MESSAGE(STATUS "Project Game Client...")

# Set src files

SET(INC 
	.
	UI
	Net
	Scenes
	Unit
	Boids
	Controllers
	Environment
	
	${OGRE_INCLUDE_PATH}
	${LIBDIR}/ois/include
	
	${PROJECT_SOURCE_DIR}/Shared/PQHeaders
	${PROJECT_SOURCE_DIR}/Shared/PQCore
	${PROJECT_SOURCE_DIR}/Shared/PQNet
	${PROJECT_SOURCE_DIR}/Shared/PQEngine
	
	${PROJECT_SOURCE_DIR}/Dependencies/cegui/Base
	${PROJECT_SOURCE_DIR}/Dependencies/cegui/Base/RendererModules/Ogre
	${PROJECT_SOURCE_DIR}/Dependencies/cegui/Base/WindowRendererSets/Falagard
	${PROJECT_SOURCE_DIR}/Dependencies/cegui/FalagardWRBase
	${PROJECT_SOURCE_DIR}/Dependencies/cegui/OgreRenderer
	
	${PROJECT_SOURCE_DIR}/Dependencies/bullet/src
	${PROJECT_SOURCE_DIR}/Dependencies/hydrax/src
	${PROJECT_SOURCE_DIR}/Dependencies/SkyX/src
	#${PROJECT_SOURCE_DIR}/Dependencies/stormlib
	
)

#Include ui headers produced by qt:
include_directories(${CMAKE_CURRENT_BINARY_DIR})

FILE(READ ${CMAKE_BINARY_DIR}/cmake_libs.txt OUT_LIBS)
SET(LIB
	winmm.lib
	${LIBDIR}/ois/lib/OIS_d.lib
	${LIBDIR}/boost_1_42/lib/libboost_thread-vc90-mt-gd-1_42.lib
	${LIBDIR}/boost_1_42/lib/libboost_date_time-vc90-mt-gd-1_42.lib
	
	${LIBDIR}/CeguiDependencies/lib/dynamic/expat_d.lib
	${LIBDIR}/CeguiDependencies/lib/dynamic/SILLY_d.lib
	${LIBDIR}/CeguiDependencies/lib/dynamic/libpng_d.lib
	${LIBDIR}/CeguiDependencies/lib/dynamic/jpeg_d.lib
	${LIBDIR}/CeguiDependencies/lib/dynamic/freetype_d.lib
	${LIBDIR}/CeguiDependencies/lib/dynamic/pcre_d.lib
	${LIBDIR}/CeguiDependencies/lib/dynamic/FreeImaged.lib
	
	

	${PQ3D_OGRE_LIBS}
	${OUT_LIBS}
)

if(WIN32)
add_definitions(-DXML_STATIC)
endif()

BUILD_EXE_Win32(PQClient "${SRC}" "${INC}")
TARGET_LINK_LIBRARIES(PQClient ${LIB})
